package com.sanen.flyer.entity.blast;

import com.sanen.flyer.common.Animation;

import java.awt.image.BufferedImage;

/**
 * @author wsse
 * @date 2018-09-21 10:12
 */
public class EnemyBlast extends Blast{
    public EnemyBlast(BufferedImage img, int x, int y) {
        this.image = img;
        this.width=img.getWidth()/9;
        this.height=img.getHeight();
        anim=new Animation(this,image,9,300,1);
        init(x,y);
    }
    public void init( int x, int y){

        this.x = x-width/2;
        this.y = y-height/2;
        this.isRemove=false;
        anim.setPlayCount(1);
    }
}
